package s17.ch20.ex3;

public class MyGenericType {

	public static void main(String[] args) {
		Parser<NumberList> numberParser = new NumberParser();
		NumberList numberList = numberParser.parse("10,20,30");
		System.out.println(numberList);
		Parser<DateList> dataParser = new DataParser();
		DateList dataList = dataParser
				.parse("1994-10-23,2001-11-21,2002-12-22");
		System.out.println(dataList);
		Parser<AmountList> amountParser = new AmountParser();
		AmountList amountList=amountParser.parse("12213333333333.224444444441,1111333333,432323333333");
		System.out.println(amountList);

	}
}
